package com.qf.springcloud.order;

import com.qf.springcloud.order.mq.SendMessagePojo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.stereotype.Component;

@SpringBootApplication
@EnableFeignClients
@EnableCircuitBreaker//开启熔断
@EnableBinding({SendMessagePojo.class})
public class OrderConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderConsumerApplication.class,args);
    }
}
